#include "svgtest.h"
#include "defaultsvggraphicsview.h"
SVGTest::SVGTest(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	this->setWindowState(Qt::WindowMaximized);
	Test();
// 	QGraphicsView* view = new QGraphicsView;
// 	QGraphicsScene* scene = new QGraphicsScene;
// 	QGraphicsSvgItem* item = new QGraphicsSvgItem(":/SVGTest/C:/Users/yuan/Desktop/svg_file.svg");
// 	view->setScene(scene);
// 	scene->addItem(item);
// 	ui.gridLayout->addWidget(view);
}

SVGTest::~SVGTest()
{

}



void SVGTest::Test()
{
	ui.gridLayout->addWidget(new DefaultSvgGraphicsView(":/SVGTest/C:/Users/yuan/Desktop/svg_file.svg", this));
}

